<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>MFDocumentManager Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<meta name="viewport" content="width=550" />
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.0.5 (build 748)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">FastPdfKit </a></h1>
				<a id="developerHome" href="../index.html">MobFarm</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">MFDocumentManager Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/fontCacheEnabled">&nbsp;&nbsp;&nbsp;&nbsp;fontCacheEnabled</option>
	
	<option value="//api/name/resourceFolder">&nbsp;&nbsp;&nbsp;&nbsp;resourceFolder</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/documentManagerWithFilePath:">&nbsp;&nbsp;&nbsp;&nbsp;+ documentManagerWithFilePath:</option>
	
	<option value="//api/name/paramsFromURI:">&nbsp;&nbsp;&nbsp;&nbsp;+ paramsFromURI:</option>
	
	<option value="//api/name/version">&nbsp;&nbsp;&nbsp;&nbsp;+ version</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/createImageForThumbnailOfPageNumber:ofSize:andScale:">&nbsp;&nbsp;&nbsp;&nbsp;- createImageForThumbnailOfPageNumber:ofSize:andScale:</option>
	
	<option value="//api/name/emptyCache">&nbsp;&nbsp;&nbsp;&nbsp;- emptyCache</option>
	
	<option value="//api/name/getCropbox:andRotation:forPageNumber:withBuffer:">&nbsp;&nbsp;&nbsp;&nbsp;- getCropbox:andRotation:forPageNumber:withBuffer:</option>
	
	<option value="//api/name/glyphBoxesForPage:">&nbsp;&nbsp;&nbsp;&nbsp;- glyphBoxesForPage:</option>
	
	<option value="//api/name/initWithDataProvider:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithDataProvider:</option>
	
	<option value="//api/name/initWithFileUrl:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithFileUrl:</option>
	
	<option value="//api/name/isLocked">&nbsp;&nbsp;&nbsp;&nbsp;- isLocked</option>
	
	<option value="//api/name/numberOfPages">&nbsp;&nbsp;&nbsp;&nbsp;- numberOfPages</option>
	
	<option value="//api/name/outline">&nbsp;&nbsp;&nbsp;&nbsp;- outline</option>
	
	<option value="//api/name/pageNumberForDestinationNamed:">&nbsp;&nbsp;&nbsp;&nbsp;- pageNumberForDestinationNamed:</option>
	
	<option value="//api/name/searchResultOnPage:forSearchTerms:">&nbsp;&nbsp;&nbsp;&nbsp;- searchResultOnPage:forSearchTerms:</option>
	
	<option value="//api/name/searchResultOnPage:forSearchTerms:ignoreCase:">&nbsp;&nbsp;&nbsp;&nbsp;- searchResultOnPage:forSearchTerms:ignoreCase:</option>
	
	<option value="//api/name/searchResultOnPage:forSearchTerms:mode:ignoreCase:">&nbsp;&nbsp;&nbsp;&nbsp;- searchResultOnPage:forSearchTerms:mode:ignoreCase:</option>
	
	<option value="//api/name/tryUnlockWithPassword:">&nbsp;&nbsp;&nbsp;&nbsp;- tryUnlockWithPassword:</option>
	
	<option value="//api/name/uriAnnotationsForPageNumber:">&nbsp;&nbsp;&nbsp;&nbsp;- uriAnnotationsForPageNumber:</option>
	
	<option value="//api/name/wholeTextForPage:">&nbsp;&nbsp;&nbsp;&nbsp;- wholeTextForPage:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				



<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fontCacheEnabled">fontCacheEnabled</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resourceFolder">resourceFolder</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentManagerWithFilePath:">documentManagerWithFilePath:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/paramsFromURI:">paramsFromURI:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/version">version</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/createImageForThumbnailOfPageNumber:ofSize:andScale:">createImageForThumbnailOfPageNumber:ofSize:andScale:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/emptyCache">emptyCache</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getCropbox:andRotation:forPageNumber:withBuffer:">getCropbox:andRotation:forPageNumber:withBuffer:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/glyphBoxesForPage:">glyphBoxesForPage:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithDataProvider:">initWithDataProvider:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithFileUrl:">initWithFileUrl:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/isLocked">isLocked</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/numberOfPages">numberOfPages</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/outline">outline</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/pageNumberForDestinationNamed:">pageNumberForDestinationNamed:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/searchResultOnPage:forSearchTerms:">searchResultOnPage:forSearchTerms:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/searchResultOnPage:forSearchTerms:ignoreCase:">searchResultOnPage:forSearchTerms:ignoreCase:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/searchResultOnPage:forSearchTerms:mode:ignoreCase:">searchResultOnPage:forSearchTerms:mode:ignoreCase:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tryUnlockWithPassword:">tryUnlockWithPassword:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uriAnnotationsForPageNumber:">uriAnnotationsForPageNumber:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/wholeTextForPage:">wholeTextForPage:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="MFDocumentManager Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">MFDocumentManager Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Conforms to</td>
	<td class="specification-value">UIAlertViewDelegate</td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">MFDocumentManager.h</td>
</tr>
						</tbody></table></div>
					
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						
						

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/getCropbox:andRotation:forPageNumber:withBuffer:">&ndash;&nbsp;getCropbox:andRotation:forPageNumber:withBuffer:</a></code>
		<span class="tooltip"><p>Use this method to get the cropbox and the rotation of a certain pdf page.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/createImageForThumbnailOfPageNumber:ofSize:andScale:">&ndash;&nbsp;createImageForThumbnailOfPageNumber:ofSize:andScale:</a></code>
		<span class="tooltip"><p>Create a thumbnail for a specific page. It will look far better than the
thumbnail integrated inside the pdf, but it is also slower.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/documentManagerWithFilePath:">+&nbsp;documentManagerWithFilePath:</a></code>
		<span class="tooltip"><p>Factory method to create an <a href="MFDocumentManager.html">MFDocumentManager</a> instance from a know file path.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/outline">&ndash;&nbsp;outline</a></code>
		<span class="tooltip"><p>Return an array of MFOutlineEntry as the outline/TOC of the pdf document.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithFileUrl:">&ndash;&nbsp;initWithFileUrl:</a></code>
		<span class="tooltip"><p>Initializer. You can also use the factory method above.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithDataProvider:">&ndash;&nbsp;initWithDataProvider:</a></code>
		<span class="tooltip"><p>Initializer with data provider.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/isLocked">&ndash;&nbsp;isLocked</a></code>
		<span class="tooltip"><p>Check if a document is encrypted and blocked by a password or not.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/tryUnlockWithPassword:">&ndash;&nbsp;tryUnlockWithPassword:</a></code>
		<span class="tooltip"><p>Try to unlock the document with a password and return if the unlock has been
successful or not.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/numberOfPages">&ndash;&nbsp;numberOfPages</a></code>
		<span class="tooltip"><p>Return the number of pages that make up the document.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/pageNumberForDestinationNamed:">&ndash;&nbsp;pageNumberForDestinationNamed:</a></code>
		<span class="tooltip"><p>This method will return the page number of the destination with the name passed
as argument.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/emptyCache">&ndash;&nbsp;emptyCache</a></code>
		<span class="tooltip"><p>Clear the page cache. It is important to call this method on memory warning as
in the sample code to prevent the application being killed right for excessive
memory usage.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/searchResultOnPage:forSearchTerms:mode:ignoreCase:">&ndash;&nbsp;searchResultOnPage:forSearchTerms:mode:ignoreCase:</a></code>
		<span class="tooltip"><p>Return an array of <a href="../Classes/MFTextItem.html">MFTextItem</a> representing the matches of teh search term on
the page passed as arguments. It is a good choice running this method in a
secondary thread.
FPKSearchMode has the following values:
FPKSearchModeHard &ndash; if you search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only but not
&lsquo;bezier&rsquo;. If you search for &lsquo;bezier&rsquo; it will match &lsquo;bezier&rsquo; only.
FPKSearchModeSoft &ndash; if you search for term &lsquo;bèzier&rsquo; it will match both &lsquo;bezier&rsquo; and &lsquo;bèzier&rsquo;. Same
if you search for &lsquo;bezier&rsquo;.
FPKSearchModeSmart &ndash; if you search for term &lsquo;bezier&rsquo;, it will also match &lsquo;bèzier&rsquo;, but if you
search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only.
Ignore case is self explanatory.
Default parameters are FPKSearchModeSmart and ignoreCase to YES.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/searchResultOnPage:forSearchTerms:">&ndash;&nbsp;searchResultOnPage:forSearchTerms:</a></code>
		<span class="tooltip"><p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/searchResultOnPage:forSearchTerms:ignoreCase:">&ndash;&nbsp;searchResultOnPage:forSearchTerms:ignoreCase:</a></code>
		<span class="tooltip"><p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/wholeTextForPage:">&ndash;&nbsp;wholeTextForPage:</a></code>
		<span class="tooltip"><p>Return a string representation of the text contained in a pdf page.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/version">+&nbsp;version</a></code>
		<span class="tooltip"><p>Build <a href="#//api/name/version">version</a> of this library. Useful for debugging purposes.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/uriAnnotationsForPageNumber:">&ndash;&nbsp;uriAnnotationsForPageNumber:</a></code>
		<span class="tooltip"><p>Array of every uri annotation for a selected page.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/paramsFromURI:">+&nbsp;paramsFromURI:</a></code>
		<span class="tooltip"><p>Get the parameters for a generic uri, useful to parse options passed with the
annotations to customize the behaviour.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/resourceFolder">&nbsp;&nbsp;resourceFolder</a></code>
		<span class="tooltip"><p>Resouce folder for the document. Video, audio and other files referenced in the
pdf are contained here.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/fontCacheEnabled">&nbsp;&nbsp;fontCacheEnabled</a></code>
		<span class="tooltip"><p>Enable/disable the font cache. Tipically, you want the cache turned on. If you
get a lot of [] (notdef) characters in the text extracted or the search turn
up nothing, try to disabled set this to NO. Default value is YES.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/glyphBoxesForPage:">&ndash;&nbsp;glyphBoxesForPage:</a></code>
		<span class="tooltip"><p>Return an array of FPKGlyphBox, that is, the bounding box of each glyph on the
page and its unicode representation. Check FPKGlyphBox interface for details.</p></span>
	</span>
	
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/fontCacheEnabled" title="fontCacheEnabled"></a>
	<h3 class="subsubtitle method-title">fontCacheEnabled</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enable/disable the font cache. Tipically, you want the cache turned on. If you
get a lot of [] (notdef) characters in the text extracted or the search turn
up nothing, try to disabled set this to NO. Default value is YES.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL fontCacheEnabled</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Enable/disable the font cache. Tipically, you want the cache turned on. If you
get a lot of [] (notdef) characters in the text extracted or the search turn
up nothing, try to disabled set this to NO. Default value is YES.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/resourceFolder" title="resourceFolder"></a>
	<h3 class="subsubtitle method-title">resourceFolder</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Resouce folder for the document. Video, audio and other files referenced in the
pdf are contained here.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, retain) NSString *resourceFolder</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Resouce folder for the document. Video, audio and other files referenced in the
pdf are contained here.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/documentManagerWithFilePath:" title="documentManagerWithFilePath:"></a>
	<h3 class="subsubtitle method-title">documentManagerWithFilePath:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Factory method to create an <a href="MFDocumentManager.html">MFDocumentManager</a> instance from a know file path.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (MFDocumentManager *)documentManagerWithFilePath:(NSString *)<em>filePath</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Factory method to create an <a href="MFDocumentManager.html">MFDocumentManager</a> instance from a know file path.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/paramsFromURI:" title="paramsFromURI:"></a>
	<h3 class="subsubtitle method-title">paramsFromURI:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Get the parameters for a generic uri, useful to parse options passed with the
annotations to customize the behaviour.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (NSDictionary *)paramsFromURI:(NSString *)<em>uri</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Get the parameters for a generic uri, useful to parse options passed with the
annotations to customize the behaviour.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/version" title="version"></a>
	<h3 class="subsubtitle method-title">version</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Build <a href="#//api/name/version">version</a> of this library. Useful for debugging purposes.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (NSString *)version</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Build <a href="#//api/name/version">version</a> of this library. Useful for debugging purposes.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/createImageForThumbnailOfPageNumber:ofSize:andScale:" title="createImageForThumbnailOfPageNumber:ofSize:andScale:"></a>
	<h3 class="subsubtitle method-title">createImageForThumbnailOfPageNumber:ofSize:andScale:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Create a thumbnail for a specific page. It will look far better than the
thumbnail integrated inside the pdf, but it is also slower.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (CGImageRef)createImageForThumbnailOfPageNumber:(NSUInteger)<em>pageNr</em> ofSize:(CGSize)<em>size</em> andScale:(CGFloat)<em>scale</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Create a thumbnail for a specific page. It will look far better than the
thumbnail integrated inside the pdf, but it is also slower.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/emptyCache" title="emptyCache"></a>
	<h3 class="subsubtitle method-title">emptyCache</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Clear the page cache. It is important to call this method on memory warning as
in the sample code to prevent the application being killed right for excessive
memory usage.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (void)emptyCache</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Clear the page cache. It is important to call this method on memory warning as
in the sample code to prevent the application being killed right for excessive
memory usage.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/getCropbox:andRotation:forPageNumber:withBuffer:" title="getCropbox:andRotation:forPageNumber:withBuffer:"></a>
	<h3 class="subsubtitle method-title">getCropbox:andRotation:forPageNumber:withBuffer:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Use this method to get the cropbox and the rotation of a certain pdf page.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (void)getCropbox:(CGRect *)<em>cropbox</em> andRotation:(int *)<em>rotation</em> forPageNumber:(NSInteger)<em>pageNumber</em> withBuffer:(BOOL)<em>withOrWithout</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Use this method to get the cropbox and the rotation of a certain pdf page.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/glyphBoxesForPage:" title="glyphBoxesForPage:"></a>
	<h3 class="subsubtitle method-title">glyphBoxesForPage:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Return an array of FPKGlyphBox, that is, the bounding box of each glyph on the
page and its unicode representation. Check FPKGlyphBox interface for details.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSArray *)glyphBoxesForPage:(NSUInteger)<em>pageNr</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Return an array of FPKGlyphBox, that is, the bounding box of each glyph on the
page and its unicode representation. Check FPKGlyphBox interface for details.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithDataProvider:" title="initWithDataProvider:"></a>
	<h3 class="subsubtitle method-title">initWithDataProvider:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializer with data provider.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (id)initWithDataProvider:(CGDataProviderRef)<em>dataProvider</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Initializer with data provider.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithFileUrl:" title="initWithFileUrl:"></a>
	<h3 class="subsubtitle method-title">initWithFileUrl:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializer. You can also use the factory method above.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (id)initWithFileUrl:(NSURL *)<em>anUrl</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Initializer. You can also use the factory method above.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/isLocked" title="isLocked"></a>
	<h3 class="subsubtitle method-title">isLocked</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Check if a document is encrypted and blocked by a password or not.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (BOOL)isLocked</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Check if a document is encrypted and blocked by a password or not.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/numberOfPages" title="numberOfPages"></a>
	<h3 class="subsubtitle method-title">numberOfPages</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Return the number of pages that make up the document.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSUInteger)numberOfPages</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Return the number of pages that make up the document.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/outline" title="outline"></a>
	<h3 class="subsubtitle method-title">outline</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Return an array of MFOutlineEntry as the outline/TOC of the pdf document.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSMutableArray *)outline</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Return an array of MFOutlineEntry as the outline/TOC of the pdf document.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/pageNumberForDestinationNamed:" title="pageNumberForDestinationNamed:"></a>
	<h3 class="subsubtitle method-title">pageNumberForDestinationNamed:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>This method will return the page number of the destination with the name passed
as argument.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSUInteger)pageNumberForDestinationNamed:(NSString *)<em>name</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This method will return the page number of the destination with the name passed
as argument.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/searchResultOnPage:forSearchTerms:" title="searchResultOnPage:forSearchTerms:"></a>
	<h3 class="subsubtitle method-title">searchResultOnPage:forSearchTerms:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSArray *)searchResultOnPage:(NSUInteger)<em>pageNr</em> forSearchTerms:(NSString *)<em>searchTerm</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/searchResultOnPage:forSearchTerms:ignoreCase:" title="searchResultOnPage:forSearchTerms:ignoreCase:"></a>
	<h3 class="subsubtitle method-title">searchResultOnPage:forSearchTerms:ignoreCase:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSArray *)searchResultOnPage:(NSUInteger)<em>pageNr</em> forSearchTerms:(NSString *)<em>searchTerm</em> ignoreCase:(BOOL)<em>ignoreOrNot</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Compatibility methods for older <a href="#//api/name/version">version</a>. It will call the above method with default values.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/searchResultOnPage:forSearchTerms:mode:ignoreCase:" title="searchResultOnPage:forSearchTerms:mode:ignoreCase:"></a>
	<h3 class="subsubtitle method-title">searchResultOnPage:forSearchTerms:mode:ignoreCase:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Return an array of <a href="../Classes/MFTextItem.html">MFTextItem</a> representing the matches of teh search term on
the page passed as arguments. It is a good choice running this method in a
secondary thread.
FPKSearchMode has the following values:
FPKSearchModeHard &ndash; if you search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only but not
&lsquo;bezier&rsquo;. If you search for &lsquo;bezier&rsquo; it will match &lsquo;bezier&rsquo; only.
FPKSearchModeSoft &ndash; if you search for term &lsquo;bèzier&rsquo; it will match both &lsquo;bezier&rsquo; and &lsquo;bèzier&rsquo;. Same
if you search for &lsquo;bezier&rsquo;.
FPKSearchModeSmart &ndash; if you search for term &lsquo;bezier&rsquo;, it will also match &lsquo;bèzier&rsquo;, but if you
search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only.
Ignore case is self explanatory.
Default parameters are FPKSearchModeSmart and ignoreCase to YES.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSArray *)searchResultOnPage:(NSUInteger)<em>pageNr</em> forSearchTerms:(NSString *)<em>searchTerm</em> mode:(FPKSearchMode)<em>mode</em> ignoreCase:(BOOL)<em>ignoreOrNot</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Return an array of <a href="../Classes/MFTextItem.html">MFTextItem</a> representing the matches of teh search term on
the page passed as arguments. It is a good choice running this method in a
secondary thread.
FPKSearchMode has the following values:
FPKSearchModeHard &ndash; if you search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only but not
&lsquo;bezier&rsquo;. If you search for &lsquo;bezier&rsquo; it will match &lsquo;bezier&rsquo; only.
FPKSearchModeSoft &ndash; if you search for term &lsquo;bèzier&rsquo; it will match both &lsquo;bezier&rsquo; and &lsquo;bèzier&rsquo;. Same
if you search for &lsquo;bezier&rsquo;.
FPKSearchModeSmart &ndash; if you search for term &lsquo;bezier&rsquo;, it will also match &lsquo;bèzier&rsquo;, but if you
search for &lsquo;bèzier&rsquo; it will match &lsquo;bèzier&rsquo; only.
Ignore case is self explanatory.
Default parameters are FPKSearchModeSmart and ignoreCase to YES.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/tryUnlockWithPassword:" title="tryUnlockWithPassword:"></a>
	<h3 class="subsubtitle method-title">tryUnlockWithPassword:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Try to unlock the document with a password and return if the unlock has been
successful or not.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (BOOL)tryUnlockWithPassword:(NSString *)<em>aPassword</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Try to unlock the document with a password and return if the unlock has been
successful or not.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/uriAnnotationsForPageNumber:" title="uriAnnotationsForPageNumber:"></a>
	<h3 class="subsubtitle method-title">uriAnnotationsForPageNumber:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Array of every uri annotation for a selected page.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSArray *)uriAnnotationsForPageNumber:(NSUInteger)<em>pageNr</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Array of every uri annotation for a selected page.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/wholeTextForPage:" title="wholeTextForPage:"></a>
	<h3 class="subsubtitle method-title">wholeTextForPage:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Return a string representation of the text contained in a pdf page.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (NSString *)wholeTextForPage:(NSUInteger)<em>pageNr</em></code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>Return a string representation of the text contained in a pdf page.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">MFDocumentManager.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2012 MobFarm. All rights reserved. (Last updated: 2012-01-04)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 748)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
		</script>
	</body>
</html>